package com.example.demo.design.chain_responsibility;

/**
 * @Author: liull
 * @Description: 具体的处理类 它是抽象处理类的子类，可以用来处理用户请求
 * @Date: Created in 16:29 2020/12/24
 * @Modified By:
 */
public class ConcreteHandlerB extends Handler {

    @Override
    public void handleRequest(String request) {
        if (true/** 满足请求条件 */
        ) {
            // 处理请求
        } else {
            this.successor.handleRequest(request); // 转发请求
        }
    }
}
